package demo.DataStrucAndAlgo.SingletonPattern;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/4-08-04-9:02
 * @Description：demo.DataStrucAndAlgo.SingletonPattern    枚举实现单例模式
 */
public class Single_enum {
    public static void main(String[] args) {
        Single  single = Single.INSTANCE;

    }
}


enum Single {
    INSTANCE;
    ;
    private Single(){}
}